import org.junit.Test;

public class Main {

    @Test
    public void testRandomDisplay(){
        RandomDisplay randomDisplay = new RandomDisplay(new StringDisplayImpl("Hello, world"));
        randomDisplay.randomDisplay(10);
    }

    @Test
    public void testFileDisplayImpl(){
        Display d1 = new Display(new FileDisplayImpl("C:\\Users\\unixman\\Desktop\\TablePage.html"));
        d1.display();
    }

    @Test
    public void testIncreaseDisplay(){
        IncreaseDisplay i1 = new IncreaseDisplay(new CharDisplayImpl('<', '*', '>'), 1);
        i1.increaseDisplay(4);

        IncreaseDisplay i2 = new IncreaseDisplay(new CharDisplayImpl('|', '#', '-'), 2);
        i2.increaseDisplay(6);
    }

    public static void main(String[] args) {
        Display d1 = new Display(new StringDisplayImpl("Hello, china"));

        Display d2 = new Display(new StringDisplayImpl("Hello, english"));

        CountDisplay d3 = new CountDisplay(new StringDisplayImpl("Hello, American"));

        d1.display();
        d2.display();
        d3.display();

        d3.multiPrint(5);
    }
}
